<h1>
<?php 
	echo $model->ut_press_name;
?>
</h1>
<?php  
	$this->widget('CMyGridView', array(
	'dataProvider'=>$model->calcResult(),
	'enablePagination'=>false,
	'summaryText'=>false,
//	'template'=>'',
	//'filter'=>$model,
	'columns'=>array(
		array(
			'name'=>'calcrow.ut_calcrow_name',
			'header'=>'Расчетная строка',
//			'footer'=>'Итого:',
		),
		array(
			'name'=>'ut_calc_count',
			'header'=>'Кол-во',
			'value'=>'empty($data->ut_calc_count)?null:number_format($data->ut_calc_count,2,"."," ");',
			'htmlOptions'=>array('class'=>'align-right'),
		),
		array(
			'name'=>'ut_calc_price',
			'value'=>'empty($data->ut_calc_price)?null:number_format($data->ut_calc_price,3,"."," ");',
			'header'=>'Цена',
			'htmlOptions'=>array('class'=>'align-right'),
		),				
		array(
	//		'class'=>'CStatColumn',
			'name'=>'ut_calc_sum',
			'header'=>'Сумма',
			'value'=>'number_format($data->ut_calc_sum,2,"."," ");',
			'htmlOptions'=>array('class'=>'align-right'),
		),						
	),
	'groupName'=>'calcrow.group.ut_group_name',
)); 
?>
